<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>二维码</title>
	<script src="__PUBLIC__/js/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>
<style>
	.z-index{ width: 100%; height: 100%; background-color: #000000; position: fixed; opacity: 0.5; color: red; text-align: center; display: none;}
	.z-index_font{margin-top:20%;}
</style>
<body>
    <div class="z-index">
    	<div class="z-index_font">正在生产中......</div>
    </div>
	<input type="text" class="num"/>
	<button class="submit">生产二维码</button>
	<script type="text/javascript">
		$('.submit').click(function(){
			$('.z-index').show();
			var num=$('.num').val();
			if(num==''){
                 alert('请填写数量');
                 return;
			}
			if(isNaN(num)){
                alert('请填写有效的数字');
                return;
			}
			$.post("{:U('Index/index2')}",{num:num},function(data){
               if(data==100){
                     $('.z-index').hide();
               }
			})
		})
	</script>
</body>
</html>